package com.bolins.examples.subspringside.util;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * 配置文件一般同class文件放到同一个目录下
 * 
 * @author liuys
 * 
 */
public class ResourceBundleUtil {
	public static void main(String[] args) {
		Locale locale = Locale.getDefault();
		System.out.println(locale.getLanguage() + "_" + locale.getCountry());

		ResourceBundle bundle = ResourceBundle.getBundle("application");
		System.out.println(bundle.getString("jdbc.url"));
	}
}
